package com.share.notification.client;
import javax.management.Notification;
import javax.management.NotificationBroadcasterSupport;

/**
 *@description:jack与我偶遇，jack说：hi；我礼貌的回答：hello，jack。
 */
public class Jack extends NotificationBroadcasterSupport implements JackMBean
{
	private int seq = 0;
	public void hi()
	{
		//创建一个信息包-----通知名称:谁发起的通知；序列号；发起通知时间；发送的消息
		Notification notify = new Notification("jack.hi",this,++seq,System.currentTimeMillis(),"jack");
		this.sendNotification(notify);
	}

}